@keyframes mymove {
  0% {
    transform: scale3d(0.5, 0.5, 0.5);
    opacity: 0;
  }
  50% {
    animation-timing-function: cubic-bezier(0.47, 0, 0.745, 0.715);
  }
  100% {
    transform: scale3d(1, 1, 1);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
  }
}
* {
  margin: 0;
  padding: 0;
}
.all {
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: url(../img/chaoshi.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  .login {
    animation: mymove 0.5s;
    width: 550px;
    height: 350px;
    margin: 100px auto;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 15px 3px black;
    h2 {
      height: 60px;
      text-align: center;
      line-height: 60px;
      &::after {
        content: "";
        width: 80%;
        height: 1px;
        display: block;
        margin: 0 auto;
        border-bottom: 1px solid rgb(192, 192, 192);
      }
    }
    .login-box {
      width: 100%;
      height: auto;
      p {
        margin-top: 30px;
        display: inline-block;
        height: 50px;
        font-size: 20px;
        margin-left: 50px;
        line-height: 50px;
      }
      a {
        color: black;
        &:hover {
          color: rgb(0, 204, 255);
        }
      }
      input {
        outline: none;
        border: 1px solid rgb(192, 192, 192);
        padding-left: 10px;
        margin-left: 30px;
        width: 60%;
        height: 40px;
        border-radius: 10px;
        &:focus {
          border: 1px solid rgb(43, 177, 255);
        }
      }
      button {
        width: 100px;
        height: 50px;
        color: aliceblue;
        border: none;
        border-radius: 10px;
        margin-left: 50%;
        transform: translateX(-50%);
        margin-top: 50px;
        background-color: rgb(50, 180, 255);
        &:hover {
          background-color: rgb(0, 162, 255);
          cursor: pointer;
        }
      }
    }
  }
  .register {
    animation: mymove 0.5s;
    display: none;
    width: 550px;
    height: 450px;
    margin: 100px auto;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 15px 3px black;
    position: relative;
    .back {
      color: rgb(155, 155, 155);
      position: absolute;
      top: 20px;
      left: 20px;
      font-size: 20px;
      &:hover {
        color: black;
        cursor: pointer;
      }
    }
    h2 {
      height: 60px;
      text-align: center;
      line-height: 60px;
      &::after {
        content: "";
        width: 80%;
        height: 1px;
        display: block;
        margin: 0 auto;
        border-bottom: 1px solid rgb(192, 192, 192);
      }
    }
    .register-box {
      width: 100%;
      height: auto;
      p {
        margin-top: 30px;
        display: inline-block;
        height: 50px;
        font-size: 20px;
        margin-left: 50px;
        line-height: 50px;
      }
      input {
        outline: none;
        border: 1px solid rgb(192, 192, 192);
        padding-left: 10px;
        margin-left: 30px;
        width: 60%;
        height: 40px;
        border-radius: 10px;
        &:focus {
          border: 1px solid rgb(43, 177, 255);
        }
      }
      button {
        width: 100px;
        height: 50px;
        color: aliceblue;
        border: none;
        border-radius: 10px;
        margin-left: 50%;
        transform: translateX(-50%);
        margin-top: 50px;
        background-color: rgb(50, 180, 255);
        &:hover {
          background-color: rgb(0, 162, 255);
          cursor: pointer;
        }
      }
    }
  }
}
